<?php
/**
 * Error reporting
 */
error_reporting(E_ALL | E_STRICT);

define('ROOT_PATH', getcwd());
define( 'REDBEAN_MODEL_PREFIX', '' );
// Autoloader
$loader = require 'vendor/autoload.php';
/* Load config */
require_once(ROOT_PATH . '/app/config.php');

// Load Main App Class
require_once(ROOT_PATH . '/core/Myapp/Main.php');
require_once(ROOT_PATH . '/core/Myapp/Registry.php');
// Run applycation
$app = new Main();
\Registry::register('bootstrap', $app);
\Registry::get('bootstrap')->run();